
<%@ page import="minusjudge.Submission" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'submission.label', default: 'Submission')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-submission" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-submission" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list submission">
			
				<g:if test="${submissionInstance?.contestant}">
				<li class="fieldcontain">
					<span id="contestant-label" class="property-label"><g:message code="submission.contestant.label" default="Contestant" /></span>
					
						<span class="property-value" aria-labelledby="contestant-label"><g:link controller="contestant" action="show" id="${submissionInstance?.contestant?.id}">${submissionInstance?.contestant?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.date}">
				<li class="fieldcontain">
					<span id="date-label" class="property-label"><g:message code="submission.date.label" default="Date" /></span>
					
						<span class="property-value" aria-labelledby="date-label"><g:formatDate date="${submissionInstance?.date}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.fileName}">
				<li class="fieldcontain">
					<span id="fileName-label" class="property-label"><g:message code="submission.fileName.label" default="File Name" /></span>
					
						<span class="property-value" aria-labelledby="fileName-label"><g:fieldValue bean="${submissionInstance}" field="fileName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.language}">
				<li class="fieldcontain">
					<span id="language-label" class="property-label"><g:message code="submission.language.label" default="Language" /></span>
					
						<span class="property-value" aria-labelledby="language-label"><g:fieldValue bean="${submissionInstance}" field="language"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.memoryUsed}">
				<li class="fieldcontain">
					<span id="memoryUsed-label" class="property-label"><g:message code="submission.memoryUsed.label" default="Memory Used" /></span>
					
						<span class="property-value" aria-labelledby="memoryUsed-label"><g:fieldValue bean="${submissionInstance}" field="memoryUsed"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.problem}">
				<li class="fieldcontain">
					<span id="problem-label" class="property-label"><g:message code="submission.problem.label" default="Problem" /></span>
					
						<span class="property-value" aria-labelledby="problem-label"><g:link controller="problem" action="show" id="${submissionInstance?.problem?.id}">${submissionInstance?.problem?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.rootPath}">
				<li class="fieldcontain">
					<span id="rootPath-label" class="property-label"><g:message code="submission.rootPath.label" default="Root Path" /></span>
					
						<span class="property-value" aria-labelledby="rootPath-label"><g:fieldValue bean="${submissionInstance}" field="rootPath"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="submission.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${submissionInstance}" field="status"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${submissionInstance?.timeElapsed}">
				<li class="fieldcontain">
					<span id="timeElapsed-label" class="property-label"><g:message code="submission.timeElapsed.label" default="Time Elapsed" /></span>
					
						<span class="property-value" aria-labelledby="timeElapsed-label"><g:fieldValue bean="${submissionInstance}" field="timeElapsed"/></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${submissionInstance?.id}" />
					<g:link class="edit" action="edit" id="${submissionInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
